package cn.fresh.xuanyuan.module.trade.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 修改退款金额
 */
@Data
public class UpdateAfterSaleAmountDto {

    @Schema(description = "售后ID")
    @NotNull(message = "售后ID不能为空")
    private Long id;

    @Schema(description = "退款金额，单位：分", example = "1")
    @NotNull(message = "退款金额不能为空")
    @Min(value = 1, message = "至少退1分钱")
    private Integer refundAmount;
}
